ResidueSum
ResidueSum[f,z] finds the sum of residues of the meromorphic function f with the variable z.
ResidueSum[{f,cons},z] finds the sum of residues of f within the solution set of the constraints cons.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.